package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysNlpSensitiveWordMapper;
import com.ruoyi.system.domain.SysNlpSensitiveWord;
import com.ruoyi.system.service.ISysNlpSensitiveWordService;

/**
 * 敏感词管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-27
 */
@Service
public class SysNlpSensitiveWordServiceImpl implements ISysNlpSensitiveWordService 
{
    @Autowired
    private SysNlpSensitiveWordMapper sysNlpSensitiveWordMapper;

    /**
     * 查询敏感词管理
     * 
     * @param id 敏感词管理主键
     * @return 敏感词管理
     */
    @Override
    public SysNlpSensitiveWord selectSysNlpSensitiveWordById(Long id)
    {
        return sysNlpSensitiveWordMapper.selectSysNlpSensitiveWordById(id);
    }

    /**
     * 查询敏感词管理列表
     * 
     * @param sysNlpSensitiveWord 敏感词管理
     * @return 敏感词管理
     */
    @Override
    public List<SysNlpSensitiveWord> selectSysNlpSensitiveWordList(SysNlpSensitiveWord sysNlpSensitiveWord)
    {
        return sysNlpSensitiveWordMapper.selectSysNlpSensitiveWordList(sysNlpSensitiveWord);
    }

    /**
     * 新增敏感词管理
     * 
     * @param sysNlpSensitiveWord 敏感词管理
     * @return 结果
     */
    @Override
    public int insertSysNlpSensitiveWord(SysNlpSensitiveWord sysNlpSensitiveWord)
    {
        return sysNlpSensitiveWordMapper.insertSysNlpSensitiveWord(sysNlpSensitiveWord);
    }

    /**
     * 修改敏感词管理
     * 
     * @param sysNlpSensitiveWord 敏感词管理
     * @return 结果
     */
    @Override
    public int updateSysNlpSensitiveWord(SysNlpSensitiveWord sysNlpSensitiveWord)
    {
        return sysNlpSensitiveWordMapper.updateSysNlpSensitiveWord(sysNlpSensitiveWord);
    }

    /**
     * 批量删除敏感词管理
     * 
     * @param ids 需要删除的敏感词管理主键
     * @return 结果
     */
    @Override
    public int deleteSysNlpSensitiveWordByIds(Long[] ids)
    {
        return sysNlpSensitiveWordMapper.deleteSysNlpSensitiveWordByIds(ids);
    }

    /**
     * 删除敏感词管理信息
     * 
     * @param id 敏感词管理主键
     * @return 结果
     */
    @Override
    public int deleteSysNlpSensitiveWordById(Long id)
    {
        return sysNlpSensitiveWordMapper.deleteSysNlpSensitiveWordById(id);
    }
}
